function init() {}

function setup(b, a) {
    em.setProperty("state", "1");
    em.setProperty("leader", "true");
    var b = em.newInstance("Boss_黄金寺院_拉瓦那_简单");
    var d = b.setInstanceMap(925120100);
    d.resetFully();
    b.getMapInstance(925120100).killAllMonsters(false);
    var c = em.getMonster(9100025);
    d.spawnMonsterOnGroundBelow(c, new java.awt.Point(945, 463));
    b.startEventTimer(1000 * 60 * 30);
    return b
}

function onPlayerRegistered(b, a) {
    var c = b.getMapInstance(0);
    a.changeMap(c, c.getPortal(0))
}

function onPlayerRevived(b, a) {
    return false
}

function onMapChanged(c, b, a) {
    if (a != 925120100) {
        c.unregisterPlayer(b);
        if (c.disposeIfPlayerBelow(0, 0)) {
            em.setProperty("state", "0");
            em.setProperty("leader", "true")
        }
    }
}

function onPlayerDisconnected(b, a) {
    b.disposeIfPlayerBelow(100, 910000000);
    em.setProperty("state", "0");
    em.setProperty("leader", "true");
    return 0
}

function onMonsterKilled(a, b) {
    return 1
}

function playerExit(b, a) {
    b.unregisterPlayer(a);
    if (b.disposeIfPlayerBelow(0, 0)) {
        em.setProperty("state", "0");
        em.setProperty("leader", "true")
    }
}

function onTimeOut(a) {
    a.disposeIfPlayerBelow(100, 910000000);
    em.setProperty("state", "0");
    em.setProperty("leader", "true")
}

function onPartyDisbanded(a) {}

function onPlayerKilled(b, a) {};